import { useModel } from "qps";

export default () => {
  const { loading, httpStart, httpOver } = useModel(
    "page3.page1-model",
    (model) => {
      return {
        loading: model.loading,
        httpStart: model.httpStart,
        httpOver: model.httpOver,
      };
    }
  );
  console.log("====>loading3");
  return (
    <div>
      <button onClick={httpStart}>httpStart1</button>
      <button onClick={httpOver}>httpOver</button>
      {loading ? "loading3..." : ""}
    </div>
  );
};
